package com.attendancesystem.model;

public class Course {
    private int courseId;
    private String courseCode;
    private String courseName;
    private int credit;
    private String teacherId;

    // Default constructor
    public Course() {
    }

    // Constructor with parameters
    public Course(int courseId, String courseCode, String courseName,int credit, String teacherId) {
        this.courseId = courseId;
        this.courseCode = courseCode;
        this.courseName = courseName;
        this.credit = credit;
        this.teacherId = teacherId;
    }

    // Getter and Setter methods
    public int getCourseId() {
        return courseId;
    }

    public void setCourseId(int courseId) {
        this.courseId = courseId;
    }

    public String getCourseCode() {
        return courseCode;
    }

    public void setCourseCode(String courseCode) {
        this.courseCode = courseCode;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public int getCredit() {
        return credit;
    }

    public void setCredit(int credit) {
        this.credit = credit;
    }

    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    // Override toString() method for displaying object information
    @Override
    public String toString() {
        return "Course{" +
                "courseId=" + courseId +
                ", courseCode='" + courseCode + '\'' +
                ", courseName='" + courseName + '\'' +
                ", credit=" + credit +
                ", teacherId='" + teacherId + '\'' +
                '}';
    }
}

